package homework.three;

import java.util.Scanner;

public  class Demo3 {
    public static void main(String[] args) {
        System.out.println("车的价格");
        Scanner scanner=new Scanner(System.in);
        double price=scanner.nextDouble();
        System.out.println("该车发生的事故次数");
        int number=scanner.nextInt();
        Bx01 bx=new Car(number,price);
        double money=bx.add();
        System.out.println("您的保费是："+money);
    }
}
